package deom.controller;


import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
@Slf4j
@Controller
public class LogController {
    //private static Logger log = LoggerFactory.getLogger(LogController.class);
    @PostConstruct
    public void print() {
        System.out.println("===========================================");
        //System.out.println("打印日志ing");
        log.trace("我是trace日志");
        log.debug("我是debug日志");
        log.info("我是info日志");
        log.warn("我是warn日志");
        log.error("我是error日志");
        System.out.println("===========================================");
    }
}
